import * as request from '@/utils/request';
// api地址
const api = {
  list: '/appApi/goods/selectByCategoryId',
  detail:'/appApi/goods/selectById'
}

// 商品列表
export const list = (categoryId) => {
  return request.post(api.list, {categoryId})
}

// 商品详情数据
export function detail(goodsId) {
  return request.post(api.detail, { goodsId })
}

